package demo.generics;

public enum Currency implements Runnable{
    DOLLER(12),RUPPES(13),POUND(14);
    public final int value;
    private Currency(int value) {
		this.value=value;
	}
    //public staic final Currency DOLLER=new  Currency(value,0);
	@Override
	public void run() {
	System.out.println("In run mehtod");
		
	}
}


/*public Currency extends Enum<Currency> {
	
	//public staic final Currency DOLLER=new  Currency("DOLLER",0);
	//public staic final Currency DOLLER=new  Currency("DOLLER",0);
	//public staic final Currency DOLLER=new  Currency("DOLLER",0);
	 
	//only private constructer  
	 * 
	 * valueOf()
	 * name()
	 * value()
	 * values();
	 *
	 *provide type safty..
}*/